/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_business_applyEntity
 * @author wangjianxin
 * @version 2018-09-28
 */
@Table(name="wx_business_apply", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="name", attrName="name", label="name", queryType=QueryType.LIKE),
		@Column(name="people", attrName="people", label="people"),
		@Column(name="phone", attrName="phone", label="phone"),
		@Column(name="address", attrName="address", label="address"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="is_relation", attrName="isRelation", label="is_relation"),
	}, orderBy="a.update_date DESC"
)
public class WxBusinessApply extends DataEntity<WxBusinessApply> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private String people;		// people
	private String phone;		// phone
	private String address;		// address
	private Long isRelation;		// is_relation

	private String isRelationText;
	
	public WxBusinessApply() {
		this(null);
	}

	public WxBusinessApply(String id){
		super(id);
	}
	
	@Length(min=0, max=200, message="name长度不能超过 200 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=200, message="people长度不能超过 200 个字符")
	public String getPeople() {
		return people;
	}

	public void setPeople(String people) {
		this.people = people;
	}
	
	@Length(min=0, max=200, message="phone长度不能超过 200 个字符")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=200, message="address长度不能超过 200 个字符")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public Long getIsRelation() {
		return isRelation;
	}

	public void setIsRelation(Long isRelation) {
		this.isRelation = isRelation;
	}

	public String getIsRelationText() {
		return isRelationText;
	}

	public void setIsRelationText(String isRelationText) {
		this.isRelationText = isRelationText;
	}
}